package cn.tedu.micro.demo.order.feign;

import cn.tedu.micro.demo.device.common.pojo.protocol.JsonResult;
import cn.tedu.micro.demo.device.common.pojo.vo.GunInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "device-demo")
public interface DeviceFeign {
    @GetMapping("/device/gun/info/{gunId}")
    public JsonResult<GunInfoVO> getGunInfo(@PathVariable Long gunId);
}
